import service from '../utils/request.js';

/**
 * 获取邀请概况
 */
export function getInviteSurvey() {
  return service({
    loadTitle: '加载中...',
    url: 'member_invitation_record/survey'
  })
}

/**
 * 获取邀请开通会员好友列表
 * @param {number} pageNo 
 * @param {number} pageSize 
 */
export function getInviteMemberRecord(pageNo, pageSize = 10) {
  return service({
    loadTitle: '加载中...',
    url: 'member_invitation_record/vip/list',
    method: 'GET',
    data: {
      pageNo,
      pageSize
    }
  })
}

/**
 * 获取邀请卡的参数二维码
 */
export function getInviteQRCode() {
  return service({
    url: 'member_invitation_record/card',
    method: 'POST'
  })
}